// pages/Signin/Signin.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    points: 22, // 积分数量
    continuousSignDays: 3, // 连续签到天数
    signList: [
      { isSigned: true, score: '+1', dayDesc: '已签到' },
      { isSigned: true, score: '+2', dayDesc: '已签到' },
      { isSigned: true, score: '+4', dayDesc: '已签到' },
      { isSigned: false, score: '+4', dayDesc: '第4天' },
      { isSigned: false, score: '+6', dayDesc: '第5天' },
      { isSigned: false, score: '+8', dayDesc: '第6天' },
      { isSigned: false, score: '+10', dayDesc: '第7天' }
    ],
    liveList: [
        {
          id: 1,
          cover: "https://ts1.tc.mm.bing.net/th/id/R-C.3a1b98d8aa749503cc2ff9c224bc8b40?rik=xxNkH0iChSUYqg&riu=http%3a%2f%2fd.ifengimg.com%2fq100%2fimg1.ugc.ifeng.com%2fnewugc%2f20190119%2f10%2fwemedia%2fabbab6554fa54232bec645b46e6e7bb3f0e4cc5b_size2326_w3000_h2000.JPG&ehk=UzIcp%2fHqCMHntTpDKBDEvAT%2bhhu8xR805ZL0enQCZ%2fY%3d&risl=1&pid=ImgRaw&r=0", // 替换为实际图片路径（本地/CDN）
          isLive: true,   // 是否显示“直播中”
          isReserve: false, // 是否显示“预约”
        },
        {
          id: 2,
          cover: "https://ts1.tc.mm.bing.net/th/id/R-C.e1dc80b52123994c087255d4708438e1?rik=0LgALA11W3s57Q&riu=http%3a%2f%2fd.ifengimg.com%2fq100%2fimg1.ugc.ifeng.com%2fnewugc%2f20190917%2f16%2fwemedia%2f7d77adea36a2cc04264273bc69810e0e55086c1f_size271_w960_h640.jpg&ehk=9gsjGk2uOiKIDZeksFxSjSjtaJ%2bp05165ZieVFUkFfk%3d&risl=&pid=ImgRaw&r=0",
          isLive: true,
          isReserve: false,
        },
        {
          id: 3,
          cover: "https://img95.699pic.com/photo/50053/0789.jpg_wh300.jpg!/fh/300/quality/90",
          isLive: true,
          isReserve: false,
        },
        {
          id: 4,
          cover: "https://ts1.tc.mm.bing.net/th/id/OIP-C.55ZMP2d6wlq2Af7BwbnVvwHaE7?rs=1&pid=ImgDetMain&o=7&rm=3",
          isLive: false,
          isReserve: true, // 显示“预约”
        },
      ],
      goodsList: [
        {
          image: 'https://cbu01.alicdn.com/img/ibank/O1CN01rFV1IV1sdrsMEg5SB_!!2209785705790-0-cib.jpg', // 替换为实际图片路径（本地或网络地址）
          title: '【秒杀】温州老字号吴玉源芡实糕200g*1袋',
          points: 1500,
          cash: 5,
          btnText: '积分不足',
          disabled: true
        },
        {
          image: 'https://ts4.tc.mm.bing.net/th/id/OIP-C.DX0x7LenEPREklBVXoqdCwHaHa?rs=1&pid=ImgDetMain&o=7&rm=3', // 替换为实际图片路径（本地或网络地址）
          title: '【秒杀】健美创研花香护手霜30g*10支 (随机10个不同味道)',
          points: 1500,
          cash: 5,
          btnText: '积分不足',
          disabled: true
        }
      ]


  },
  goToMore() {
    // 点击“查看更多”的跳转逻辑，可跳转到更多商品列表页面
    wx.navigateTo({
      url: '/pages/moreGoods/moreGoods'
    });
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },
  goRule() {
    // 跳转积分规则页面逻辑
    wx.showToast({
      title: '前往积分规则页面',
      icon: 'none'
    });
  },
  goDetail() {
    // 跳转积分明细页面逻辑
    wx.showToast({
      title: '前往积分明细页面',
      icon: 'none'
    });
  },
  remindSign() {
    // 提醒明日签到逻辑，可结合小程序订阅消息实现
    wx.showToast({
      title: '已设置提醒',
      icon: 'none'
    });
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})